package main

import (
	"github.com/gin-gonic/gin"
	"ivr/response"
	"ivr/robot"
	"ivr/session"
	"ivr/nlg"
)



func startHttpServer (port string){
	router := gin.Default()
	router.POST("/ivr/runtime",response.ProcessIvr);
	router.POST("/ivr/robot/publish",response.ProcessRobotPublish);

	router.Run(port)
	
}
func main()  {
	robot.GetRobotMgr()
	session.GetSessionMgr()
	nlg.GetNlgMgr()
	
	startHttpServer(":8880")
}


